package main
import (
	"fmt"
	"go_code/project15/model"
)

func main(){
	person := model.PersonFactory("fmx")
	fmt.Println("Person : ",*person)
	person.SetAge(22)
	person.SetSal(15000.0)
	fmt.Println("Person : ",*person)
	fmt.Println("Person'Name: ",person.Name)  //首字母大可以直接访问
	fmt.Println("Person'Age: ",person.GetAge()) //通过get()方法来获取封装的值
	fmt.Println("Person'Sal: ",person.GetSal())	

	account := model.AccountFactory("aasdsa",101.1,"666666")
	fmt.Println("Account is :",*account)
}